﻿package mortal.game.view.copy.worldBoss.WorldBossAllot
{
    import com.mui.controls.*;
    import flash.events.*;
    import mortal.game.manager.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.mvc.core.*;

    public class WorldBossAllotIcon extends View
    {
        private var _allotWindow:WorldBossAllotWindow;
        protected var _btn:GLoadingButton;

        public function WorldBossAllotIcon(param1:WorldBossAllotWindow)
        {
            this._allotWindow = param1;
            this.layer = LayerManager.specialIconLayer;
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._btn = UIFactory.gLoadingButton(ResFileConst.WorldBossBtnGetEquip, 0, 0, 110, 107, this);
            this._btn.configEventListener(MouseEvent.CLICK, this.clickHandler);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._btn.dispose();
            this._btn = null;
            super.disposeImpl(param1);
            return;
        }// end function

        protected function clickHandler(event:MouseEvent) : void
        {
            this._allotWindow.show();
            this.hide();
            return;
        }// end function

    }
}
